<template>
  <div class="page">
    <div class="page__hd">
      <img :src="logoImg" alt="" class="logo">
    </div>
    <router-link to="/add">
      <wv-button type="primary" class="fd-btn">+</wv-button>
    </router-link>
    <wv-footer class="footer-copyright" text="Copyright © 2018 粤ICP备18000001号-1"/>
  </div>
</template>

<script>
import { navs } from '../router'
import logoImg from '../assets/images/food.jpg'

export default {
  data () {
    return {
      logoImg,
      navs,
      keyword: '',
      componentList: []
    }
  },

  mounted () {
    navs.map(navGroup => {
      this.componentList = this.componentList.concat(navGroup.navItems)
    })
  }
}
</script>

<style scoped lang="scss">
  .logo {
    display: block;
    margin: 0 auto;
    width: 75px;
  }
  .fd-btn{
    width: 160px;
    height: 160px;
    border-radius: 50%;
    font-size: 100px;
    line-height: 160px;
  }
  .page__hd {
    padding: 20px;
    .page__title {
      text-align: center;
      font-size: 20px;
      font-weight: 400;
    }
  }

  .page {
    margin-bottom: 0;
  }

  .cell-icon {
    display: block;
    margin-right: 5px;
    color: #2196f3;
    overflow: hidden;
    font-size: 20px;
    width: 25px;
    text-align: center;
  }

  .footer-copyright {
    margin: 40px 0 20px;
  }
</style>
